home *** CD-ROM | disk | FTP | other *** search
/ Enter Special 2004 January: Practical Advice / ENTER Special 09.iso / Biuro / NoteTab Light 4.95 / NoteTab_Setup.exe / {app} / Libraries / HTML.clb < prev    next >
Encoding:
Text File  |  2003-05-22  |  28.0 KB  |  629 lines

  1. = V5 MultiLine NoSorting TabWidth=30
  2.  
  3. H=";HTML Template"
  4.  
  5.  
  6. H="New Web page"
  7. ^!Open ^$GetTemplatePath$HTML.tpl
  8.  
  9. H=";Document Elements"
  10. Most of these elements are required within an HTML document for it to conform to HTML standards.
  11.  
  12. H="Base"
  13. ^!InsertWizardHtml <BASE HREF="^?[Base URL=^&]" TARGET="^?[Target (optional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top]">^P
  14.  
  15. H="Basefont"
  16. ^!Clip "Basic Color Codes"
  17. ^!SetWizardLabel "Enter values for tag attributes"
  18. ^!InsertWizardHtml <BASEFONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingdings, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^%BasicColors%}">^P
  19.  
  20. H="Body"
  21. ^!Set %HasBody%=False
  22. ^!Clip "Color Codes"
  23. ^!Clip "Basic Color Codes"
  24. ^!InsertWizardHtml <BODY BGCOLOR="^?{&Background Color=^$StrReplace("white^=#FFFFFF";"_white^=#FFFFFF";"^%AllColors%";True;False)$}" TEXT="^?{&Text Color=^$StrReplace("black^=#000000";"_black^=#000000";"^%BasicColors%";True;False)$}" LINK="^?{&Link Color=^$StrReplace("blue^=#0000FF";"_blue^=#0000FF";"^%BasicColors%";True;False)$}" VLINK="^?{&Visited Link Color=^$StrReplace("purple^=#800080";"_purple^=#800080";"^%BasicColors%";True;False)$}" ALINK="^?{&Active Link Color=^$StrReplace("red^=#FF0000";"_red^=#FF0000";"^%BasicColors%";True;False)$}" BACKGROUND="^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg;*.jpe")Background &file name=^$GetSelection$}">^P^P
  25. ^!IfCancel End
  26. ^!Set %HasBody%=True
  27.  
  28. H="HTML begin"
  29. ^!Set %DocValues%=[Omit]^=|XHTML 1.0 Strict^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">|XHTML 1.0 Transitional^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">|XHTML 1.0 Frameset^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">|HTML 4.01 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">|HTML 4.01 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">|HTML 4.01 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">|HTML 4 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">|HTML 4 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">|HTML 4 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">|HTML 3.2 (W3C)^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">|HTML (IE3)^=<!DOCTYPE HTML PUBLIC "-//Microsoft//DTD Internet Explorer 3.0 HTML//EN">|HTML 2 (Netscape)^=<!DOCTYPE HTML PUBLIC "-//WebTechs//DTD Mozilla HTML 2.0//EN">|HTML 2 (IETF)^=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">|HTML 1 (IETF)^=<!DOCTYPE HTML PUBLIC  "-//IETF//DTD HTML Level 1//EN">
  30.  
  31. ^!Set %CharSetValues%=[Omit]^=|Default encoding (UTF-8)^=UTF-8|Latin 1 (Western/West European)^=ISO-8859-1|Latin 2 (Central and East European)^=ISO-8859-2|Latin 3 (South European, Maltese and Esperanto)^=ISO-8859-3|Latin 4 (North European)^=ISO-8859-4|Latin/Cyrillic (Slavic languages)^=ISO-8859-5|Latin/Arabic^=ISO-8859-6|Latin/Greek (modern Greek)^=ISO-8859-7|Latin/Hebrew (Hebrew and Yiddish)^=ISO-8859-8|Latin 5 (Turkish)^=ISO-8859-9|Latin 6 (Nordic: Sßmi, Inuit, Icelandic)^=ISO-8859-10|Latin/Thai^=ISO-8859-11|Latin 7 (Baltic Rim)^=ISO-8859-13|Latin 8 (Celtic)^=ISO-8859-14|Latin 9 ("Euro")^=ISO-8859-15|Japanese (SHIFT_JIS)^=SHIFT_JIS|Japanese (EUC-JP)^=EUC-JP
  32.  
  33. ^!Set %DefaultDocValue%=^$GetValue(HTML_DocType)$
  34. ^!IfTrue ^$IsEmpty(^%DefaultDocValue%)$ ^!Set %DefaultDocValue%=[Omit]
  35. ^!Set %DocValues%=^$SetDefaultValue("^%DocValues%";^%DefaultDocValue%)$
  36.  
  37. ^!Set %DefaultCharSet%=^$GetValue(HTML_CharSet)$
  38. ^!IfTrue ^$IsEmpty(^%DefaultCharSet%)$ ^!Set %DefaultCharSet%=[Omit]
  39. ^!Set %CharSetValues%=^$SetDefaultValue("^%CharSetValues%";^%DefaultCharSet%)$
  40.  
  41. ^!Set %Author%=^$GetValue(HTML_Author)$
  42. ^!Set %Email%=^$GetValue(HTML_Email)$
  43.  
  44. ^!Set %DocType%=^?{Document &type=^%DocValues%}; %Title%=^?{&Web page title}; %Description%=^?{Web page &description}; %Keywords%=^?{Web page &keywords}; %Author%=^?{Your &name=^%Author%}; %Email%=^?{Your &e-mail address=^%Email%}; %CharSet%=^?{&Character set=^%CharSetValues%}
  45.  
  46. ^!SaveValue HTML_DocType=^%DocType%
  47. ^!SaveValue HTML_CharSet=^%CharSet%
  48. ^!SaveValue HTML_Author=^%Author%
  49. ^!SaveValue HTML_Email=^%Email%
  50. ^!IfFalse ^$IsEmpty(^%DocType%)$ ^!Set %DocType%=^%DocType%^P
  51. ^!IfFalse ^$IsEmpty(^%CharSet%)$ ^!Set %CharSet%=  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=^%CharSet%">^P
  52.  
  53. ^!If ^$GetClipVersion$ = 5 Start
  54. ^!Set %HtmlFormat%=^$GetHtmlFormat$
  55. ^!If ^%HtmlFormat% = XHTML Start
  56. ^!If ^$StrPos("XHTML";"^%DocType%";False)$ = 0 Start
  57. ^!SetHtmlFormat XHTML
  58.  
  59. :Start
  60. ^!InsertHtml ^%DocType%<HTML>^P<HEAD>^P  <TITLE>^%Title%</TITLE>^P  <LINK REV="made" HREF="mailto:^%Email%">^P^%CharSet%  <META NAME="generator" CONTENT="^$GetProgName$ ^$GetProgVersion$">^P  <META NAME="author" CONTENT="^%Author%">^P  <META NAME="description" CONTENT="^%Description%">^P  <META NAME="keywords" CONTENT="^%Keywords%">^P</HEAD>^P^P
  61. ^!Clip Body
  62. ^!IfFalse ^%HasBody% ^!InsertHtml <BODY>^P^P
  63. ^!If ^$GetClipVersion$ = 5 Skip
  64. ^!SetHtmlFormat ^%HtmlFormat%
  65.  
  66. H="HTML end"
  67. ^!InsertHtml </BODY>^P</HTML>^P
  68.  
  69. H="Last updated..."
  70. ^!InsertHtml Last updated on <^?[Format date==_Bold^=B|Italic^=I]>^$GetDate(mmmm dd, yyyy)$</^?[Format date]>^P
  71.  
  72. H="Link"
  73. ^!SetWizardLabel "Enter values for tag attributes"
  74. ^!InsertWizardHtml <LINK HREF="^?{&URL of linked resource}" REL="^?{&Relationship with linked document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|next|prev|section|start|stylesheet|subsection}" REV="^?{&Relationship of current document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|made|next|prev|section|start|stylesheet|subsection}">^P
  75.  
  76. H="Meta"
  77. ^!SetWizardLabel "Enter values for tag attributes"
  78. ^!InsertWizardHtml <META HTTP-EQUIV="^?{&HTTP header string=content-type|expires|page-enter|pics-label|pragma|refresh}" NAME="^?{&Name of meta-information=author|copyright|date|description|generator|identifier|keywords|revisit-after|robots}" CONTENT="^?{&Content}">^P
  79.  
  80. H="Style"
  81. ^!SetWizardLabel "Enter values for tag attributes"
  82. ^!InsertWizardHtml <STYLE TYPE="^?{&Mime type=text/css}" LANG="^?{&Language}">^P<!--^P  ^&^P-->^P</STYLE>^P
  83.  
  84. H="Title"
  85. ^!InsertHtml <TITLE>^&</TITLE>^P
  86.  
  87. H=";Anchor Elements"
  88. An anchor element is used to define the start and/or destination of a hypertext link.
  89.  
  90. H="Bookmark"
  91. ^!InsertHtml <A NAME="^?[Bookmark label]">^&</A>
  92.  
  93. H="Hyperlink"
  94. ^!SetWizardLabel "Enter values for tag attributes"
  95. ^!InsertWizardHtml <A HREF="^?{&Link URL}" TARGET="^?{&Target (transitional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top}">^?{Link &description=^&}</A>
  96.  
  97. H="Hyperlink = description"
  98. ^!InsertHtml <A HREF="^&">^?[=^&]</A>
  99.  
  100. H="Hyperlink to bookmark"
  101. ^!InsertHtml <A HREF="#^?[Link to Bookmark]">^&</A>
  102.  
  103. H="Hyperlink with image"
  104. ^!SetWizardLabel "Enter values for tag attributes"
  105. ^!InsertWizardHtml <A HREF="^?{&Link URL}"><IMG ^?{(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name} BORDER="0" ALT="^?{Image text &description=^&}"></A>
  106.  
  107. H="MailTo"
  108. ^!SetWizardLabel "Enter values for tag attributes"
  109. ^!InsertHtml <A HREF="mailto:^?{&Email address=^&}">^?{&Link description text=^&}</A>
  110.  
  111. H=";Block Formatting"
  112. These elements are used for the formatting of whole blocks of text within an HTML document.
  113.  
  114. H="Address"
  115. ^!InsertHtml <ADDRESS>^P  ^&^P</ADDRESS>^P
  116.  
  117. H="Blockquote"
  118. ^!SetPasteIndent Off
  119. ^!InsertHtml <BLOCKQUOTE>^&</BLOCKQUOTE>
  120.  
  121. H="Center"
  122. ^!SetPasteIndent Off
  123. ^!InsertHtml <CENTER>^&</CENTER>
  124.  
  125. H="Div"
  126. ^!SetPasteIndent Off
  127. ^!InsertWizardHtml <DIV ALIGN="^?{&Align (transitional)=center|justify|left|right}">^&</DIV>
  128.  
  129. H="Font"
  130. ^!Clip "Basic Color Codes"
  131. ^!SetPasteIndent Off
  132. ^!SetWizardLabel "Enter values for tag attributes"
  133. ^!InsertWizardHtml <FONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingdings, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^%BasicColors%}">^&</FONT>
  134.  
  135. H="Line break"
  136. ^!InsertHtml <BR>^P
  137.  
  138. H="H? header"
  139. ^!InsertHtml <H^?[(T=C)Header level==_1|2|3|4|5|6]>^&</H^?[Header level]>^P
  140.  
  141. H="Horizontal line"
  142. ^!SetWizardLabel "Optional attributes for the HR tag"
  143. ^!InsertWizardHtml <HR ALIGN="^?{(T=C)&Align (transitional)=center|left|right}" SIZE="^?{&Size (transitional)}" WIDTH="^?{&Width (transitional)}"^?{(T=C)&No shade (transitional)==True^= NOSHADE|False^=}>^P
  144.  
  145. H="Paragraph block"
  146. ^!SetPasteIndent Off
  147. ^!InsertWizardHtml <P ALIGN="^?{&Align (transitional)=center|justify|left|right}">^&</P>
  148.  
  149. H="Preformatted text"
  150. ^!InsertHtml <PRE>^P  ^&^P</PRE>^P
  151.  
  152. H=";List Elements"
  153. List elements are used in the body of an HTML document and may be nested.
  154.  
  155. H="Definition list"
  156. ^!InsertHtml <DL>^P^$StrFill("  <DT></DT><DD></DD>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$</DL>^P
  157.  
  158. H="Ordered List"
  159. ^!Clip "CreateList" OL
  160.  
  161. H="Unordered list"
  162. ^!Clip "CreateList" UL
  163.  
  164. H="Add list item"
  165. ^!InsertHtml <LI>^&</LI>
  166.  
  167. H=";Information Elements"
  168. Information type elements indicate to the browser that the enclosed text should be rendered in a way according to the browser, rather than using a specific formatting style.
  169.  
  170. H="Acronym"
  171. ^!InsertHtml <ACRONYM>^&</ACRONYM>
  172.  
  173. H="Citation"
  174. ^!InsertHtml <CITE>^&</CITE>
  175.  
  176. H="Code"
  177. ^!InsertHtml <CODE>^&</CODE>
  178.  
  179. H="Comment"
  180. <!-- ^?[Comment=^&] -->
  181.  
  182. H="Emphasis"
  183. ^!InsertHtml <EM>^&</EM>
  184.  
  185. H="Keyboard"
  186. ^!InsertHtml <KBD>^&</KBD>
  187.  
  188. H="Strong"
  189. ^!InsertHtml <STRONG>^&</STRONG>
  190.  
  191. H="Variable"
  192. ^!InsertHtml <VAR>^&</VAR>
  193.  
  194. H=";Character Formatting"
  195. Character formatting elements produce strict rendering of the text.
  196.  
  197. H="Big text"
  198. ^!InsertHtml <BIG>^&</BIG>
  199.  
  200. H="Bold"
  201. ^!Clip CheckLogical
  202.  
  203. :PasteTag
  204. ^!Set %Value%=B
  205. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=STRONG
  206. ^!InsertHtml <^%Value%>^&</^%Value%>
  207.  
  208. H="Italic"
  209. ^!Clip CheckLogical
  210.  
  211. :PasteTag
  212. ^!Set %Value%=I
  213. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=EM
  214. ^!InsertHtml <^%Value%>^&</^%Value%>
  215.  
  216. H="Small text"
  217. ^!InsertHtml <SMALL>^&</SMALL>
  218.  
  219. H="Strike"
  220. ^!InsertHtml <STRIKE>^&</STRIKE>
  221.  
  222. H="Subscript"
  223. ^!InsertHtml <SUB>^&</SUB>
  224.  
  225. H="Superscript"
  226. ^!InsertHtml <SUP>^&</SUP>
  227.  
  228. H="Underline"
  229. ^!InsertHtml <U>^&</U>
  230.  
  231. H=";Image Elements"
  232. The Image element is used to incorporate in-line graphics into an HTML document.
  233.  
  234. H="Embed"
  235. ^!SetWizardLabel "Enter values for tag attributes"
  236. ^!InsertWizardHtml <EMBED SRC="^?{&Object URL=^&}" ALIGN="^?{&Align=absbottom|absmiddle|baseline|bottom|left|middle|right|texttop|top}" ALT="^?{Alternative text &description}">
  237.  
  238. H="Image"
  239. ^!SetWizardLabel "Enter values for tag attributes"
  240. ^!InsertWizardHtml <IMG ^?{(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name} BORDER="^?{&Border (transitional)=_0|1|2|3|4|5}" ALIGN="^?{&Align (transitional)=bottom|left|middle|right|top}" HSPACE="^?{&Horizontal space (transitional)}" VSPACE="^?{&Vertical space (transitional)}" ALT="^?{Image text &description=^&}">
  241.  
  242. H=";Table Elements"
  243. Table elements with tags to define rows and cells.
  244.  
  245. H="Caption"
  246. ^!InsertWizardHtml <CAPTION ALIGN="^?{Align (transitional)=bottom|left|right|top}">^&</CAPTION>
  247.  
  248. H="Table"
  249. ^!Clip "Color Codes"
  250. ^!SetWizardLabel "Enter values for tag attributes"
  251. ^!InsertWizardHtml <TABLE ALIGN="^?{&Align (transitional)=center|left|right}" BGCOLOR="^?{Background &color (transitional)=^%AllColors%}" BORDER="^?{&Border=_0|1|2|3|4|5|6|7|8}" CELLSPACING="^?{Cell &spacing=0}" CELLPADDING="^?{Cell &padding=0}" WIDTH="^?{&Width=100%}">^P  ^&^P</TABLE>^P
  252.  
  253. H="TD table data cell"
  254. ^!Clip "Color Codes"
  255. ^!SetWizardLabel "Enter values for tag attributes"
  256. ^!InsertWizardHtml <TD ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TD>
  257.  
  258. H="TH table heading cell"
  259. ^!Clip "Color Codes"
  260. ^!SetWizardLabel "Enter values for tag attributes"
  261. ^!InsertWizardHtml <TH ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TH>
  262.  
  263. H="TR table row"
  264. ^!Clip "Color Codes"
  265. ^!SetWizardLabel "Enter values for tag attributes"
  266. ^!InsertWizardHtml <TR ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}">^&</TR>
  267.  
  268. H="Table wizard"
  269. ^!SetPasteIndent Off
  270. ^!InsertWizardHtml <TABLE ALIGN="^?[(3)&Table align (transitional)=center|left|right]" BORDER="^?[(4)&Border=_0|1|2|3|4|5|6|7|8]" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">^P
  271. ^!SET %RowCount%=^?[(1)How many &rows=1|2|_3|4|5|6|7|8|9]
  272. ^!SET %CellCount%=^?[(2)How many &cells=1|2|_3|4|5|6|7|8|9]
  273. ^!SET %RowIndex%=0
  274. :RepeatRow
  275. ^!INC RowIndex
  276. ^!IF ^%RowIndex% > ^%RowCount% EndRow
  277. ^!InsertWizardHtml   <TR ALIGN="^?[(5)TR &Align=center|left|right]" VALIGN="^?[(6)TR &VAlign=baseline|bottom|middle|top]">^P
  278. ^!SET %CellIndex%=0
  279. :RepeatCell
  280. ^!INC CellIndex
  281. ^!IF ^%CellIndex% > ^%CellCount% EndCell
  282. ^!InsertWizardHtml     <TD ALIGN="^?[(7)T&D Align=center|left|right]" VALIGN="^?[(8)TD VAli&gn=baseline|bottom|middle|top]">^P
  283. ^?[(10)&Prompt for cell text=Yes^=    ^?{R^%RowIndex%C^%CellIndex%: Enter cell text}|_No^=    <!--R^%RowIndex%C^%CellIndex%-->]
  284. ^!InsertHtml ^P    </TD>^P
  285. ^!GoTo RepeatCell
  286. :EndCell
  287. ^!InsertHtml   </TR>^P
  288. ^!GoTo RepeatRow
  289. :EndRow
  290. ^!InsertHtml </TABLE>^P
  291.  
  292. H="Table wizard (simple)"
  293. ^!SetPasteIndent Off
  294. ^!InsertHtml <TABLE BORDER="1" WIDTH="100%">^P
  295. ^!SET %RowCount%=^?[How many &rows=1|2|_3|4|5|6|7|8|9]
  296. ^!SET %CellCount%=^?[How many &cells=1|2|_3|4|5|6|7|8|9]
  297. ^!SET %RowIndex%=0
  298. :RepeatRow
  299. ^!INC RowIndex
  300. ^!IF ^%RowIndex% > ^%RowCount% EndRow
  301. ^!InsertHtml   <TR>^P
  302. ^!SET %CellIndex%=0
  303. :RepeatCell
  304. ^!INC CellIndex
  305. ^!IF ^%CellIndex% > ^%CellCount% EndCell
  306. ^!InsertHtml     <TD>^P
  307. ^?[&Prompt for cell text=Yes^=    ^?{R^%RowIndex%C^%CellIndex%: Enter cell text}|_No^=    <!--R^%RowIndex%C^%CellIndex%-->]
  308. ^!InsertHtml ^P    </TD>^P
  309.  
  310. ^!GoTo RepeatCell
  311. :EndCell
  312. ^!InsertHtml   </TR>^P
  313. ^!GoTo RepeatRow
  314. :EndRow
  315. ^!InsertHtml </TABLE>^P
  316.  
  317. H=";Frame Elements"
  318. These elements are used to create frames.
  319.  
  320. H="Frame"
  321. ^!SetWizardLabel "Enter values for tag attributes"
  322. ^!InsertWizardHtml <FRAME SRC="^?{(T=O;F="HTML Files (*.htm*)|*.htm*")&URL of frame contents}" NAME="^?{&Name of frame}" FRAMEBORDER="^?{&Frame border=0|1}" SCROLLING="^?{&Scrolling=auto|no|yes}" ^?{(T=C)N&o resize==True^= NORESIZE|False^=}>^P
  323.  
  324. H="Frameset"
  325. ^!SetWizardLabel "Enter values for tag attributes"
  326. ^!InsertWizardHtml <FRAMESET COLS="^?{List of &columns}" ROWS="^?{List of &rows}">^p  ^&^p</FRAMESET>^p
  327.  
  328. H="IFrame"
  329. ^!SetWizardLabel "Enter values for tag attributes"
  330. ^!InsertWizardHtml <IFRAME SRC="^?{(T=O;F="HTML Files (*.htm*)|*.htm*")&URL of frame contents}" ALIGN="^?{&Align=bottom|left|middle|right|top}" HEIGHT="^?{&Height}" WIDTH="^?{&Width}" NAME="^?{&Name of frame}">^p  ^&^p</IFRAME>^p
  331.  
  332. H="NoFrames"
  333. ^!InsertHtml <NOFRAMES>^p  ^&^p</NOFRAMES>^p
  334.  
  335. H=";Form Elements"
  336. These elements are used to create forms.
  337.  
  338. H="Form"
  339. ^!SetWizardLabel "Enter values for tag attributes"
  340. ^!InsertWizardHtml <FORM ACTION="^?{&Action URL}" METHOD="^?{&Method=get|post}" TARGET="^?{&Target (transitional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top}">^P  ^&^P</FORM>^P
  341.  
  342. H="Input"
  343. ^!SetWizardLabel "Enter values for tag attributes"
  344. ^!InsertWizardHtml <INPUT TYPE="^?{Input &type=Button|Checkbox|File|Hidden|Image|Password|Radio|Reset|Submit|_Text}" NAME="^?{Input &name}" VALUE="^?{&Value=^&}">^P
  345.  
  346. H="Input button"
  347. ^!SetWizardLabel "Enter values for tag attributes"
  348. ^!InsertWizardHtml <INPUT TYPE="Button" NAME="^?{Button &name}" VALUE="^?{&Value=^&}">^P
  349.  
  350. H="Input checkbox"
  351. ^!SetWizardLabel "Enter values for tag attributes"
  352. ^!InsertWizardHtml <INPUT TYPE="Checkbox" NAME="^?{Checkbox &name}" VALUE="^?{&Value=^&}"^?{(T=C)&Checked==True^= CHECKED|_False^=}>^P
  353.  
  354. H="Input radio button"
  355. ^!SetWizardLabel "Enter values for tag attributes"
  356. ^!InsertWizardHtml <INPUT TYPE="Radio" NAME="^?{Radio button &name}" VALUE="^?{&Value=^&}"^?{(T=C)&Checked==True^= CHECKED|_False^=}>^P
  357.  
  358. H="Input submit"
  359. ^!SetWizardLabel "Enter value for tag attributes"
  360. ^!InsertWizardHtml <INPUT TYPE="Submit" NAME="^?{Button &name}" VALUE="^?{&Value=Submit}">^P
  361.  
  362. H="Input text"
  363. ^!SetWizardLabel "Enter values for tag attributes"
  364. ^!InsertWizardHtml <INPUT TYPE="Text" NAME="^?{Field &name}" VALUE="^?{&Value=^&}" MAXLENGTH="^?{&Maximum text length}" SIZE="^?{&Size}"^?{(T=C)&Read Only==True^= READONLY|_False^=}>^P
  365.  
  366. H="Multi-line input"
  367. ^!SetWizardLabel "Enter values for tag attributes"
  368. ^!InsertWizardHtml <TEXTAREA NAME="^?{Input &name}" ROWS="^?{&Rows}" COLS="^?{&Columns}" WRAP="^?{&Word wrap=_off|virtual|physical}"^?{(T=C)&Read Only==True^= READONLY|_False^=}>^P^&^P</TEXTAREA>^P
  369.  
  370. H="Option"
  371. ^!SetWizardLabel "Enter values for tag attributes"
  372. ^!InsertWizardHtml <OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}></OPTION>^P
  373.  
  374. H="Select"
  375. ^!If ^$GetSelSize$ > 0 FormatSelection
  376. ^!Set %Count%=^?{How many &items?=1|2|_3|4|5|6|7|8|9}; %FieldName%=^?{Field &name}
  377. ^!InsertWizardHtml <SELECT NAME="^%FieldName%">^P^$StrFill("  <OPTION></OPTION>^P";^%Count%)$</SELECT>^P
  378. ^!Goto End
  379.  
  380. :FormatSelection
  381. ^!Select PARAGRAPHS
  382. ^!SetListDelimiter ^P
  383. ^!SetArray %Items%=^$GetSelection$
  384.  
  385. ^!Set %Indent%="  "
  386. ^!Set %GroupIndent%=""
  387. ^!Set %IndentSize%=^$Calc(^$StrSize("^%Items1%!")$ - ^$StrSize("^$StrTrim("^%Items1%!")$")$)$
  388. ^!If ^%IndentSize% > 0 ^!Set %Indent%=^$StrCopy("^%Items1%";1;^%IndentSize%)$
  389. ^!If ^%IndentSize% > 2 ^!Set %GroupIndent%=^$StrCopy("^%Indent%";1;^$Calc(^%IndentSize% - 2)$)$
  390.  
  391. ^!Set %Index%=1; %ItemsCount%=^%Items0%; %ListStr%=^%GroupIndent%<SELECT NAME="^?{Field name}">^P
  392. ^!If ^%ItemsCount% > 1 ^!Dec %ItemsCount%
  393.  
  394. :StartLoop
  395. ^!If ^%Index% > ^%ItemsCount% EndLoop
  396. ^!Set %ListStr%=^%ListStr%^%Indent%<OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}>^?{Text=^$StrTrim("^%Items^%Index%%")$}</OPTION>^P
  397. ^!Inc %Index%
  398. ^!Goto StartLoop
  399.  
  400. :EndLoop
  401. ^!InsertWizardHtml ^%ListStr%^%GroupIndent%</SELECT>^P
  402.  
  403. H=";Other Elements"
  404.  
  405.  
  406. H="Script"
  407. ^!SetWizardLabel "Enter values for tag attributes"
  408. ^!InsertWizardHtml <SCRIPT TYPE="^?{&Type script=text/javascript|text/jscript|text/vbscript}" LANGUAGE="^?{&Scripting Language=javascript|jscript|vbscript}" SRC="^?{&URL of script code}" FOR="^?{&Element ID}" EVENT="^?{&Event name}"^?{(T=C)&Defer==True^= DEFER|False^=}>^P<!--^P  ^&^P//-->^P</SCRIPT>^P
  409.  
  410. H="NoScript"
  411. ^!InsertHtml <NOSCRIPT>^p  ^&^p</NOSCRIPT>^p
  412.  
  413. H="Applet"
  414. ^!SetWizardLabel "Enter values for tag attributes"
  415. ^!InsertWizardHtml <APPLET CODE="^?{&URL of Java code}" ARCHIVE="^?{Archive &file}" ALIGN="^?{&Align=bottom|left|middle|right|top}" WIDTH="^?{Applet &width}" HEIGHT="^?{Applet &height}" ALT="^?{Alternative text &description}">^P  ^&^P</APPLET>^P
  416.  
  417. H="Special character"
  418. &^?[(H=8)Choose special character to paste==_⌐ Copyright^=copy|« Registered TradeMark^=reg|TM TradeMark^=trade|Non breaking space^=nbsp|"^=quot|&^=amp|<^=lt|>^=gt|┴^=Aacute|ß^=aacute|└^=Agrave|α^=agrave|┬^=Acirc|Γ^=acirc|─^=Auml|Σ^=auml|├^=Atilde|π^=atilde|┼^=Aring|σ^=aring|╞^=Aelig|µ^=aelig|╟^=Ccedil|τ^=ccedil|╨^=Eth|≡^=eth|╔^=Eacute|Θ^=eacute|╚^=Egrave|Φ^=egrave|╩^=Ecirc|Ω^=ecirc|╦^=Euml|δ^=euml|═^=Iacute|φ^=iacute|╠^=Igrave|∞^=igrave|╬^=Icirc|ε^=icirc|╧^=Iuml|∩^=iuml|╤^=Ntilde|±^=ntilde|╙^=Oacute|≤^=oacute|╥^=Ograve|≥^=ograve|╘^=Ocirc|⌠^=ocirc|╓^=Ouml|÷^=ouml|╒^=Otilde|⌡^=otilde|╪^=Oslash|°^=oslash|▀^=szlig|▐^=Thorn|■^=thorn|┌^=Uacute|·^=uacute|┘^=Ugrave|∙^=ugrave|█^=Ucirc|√^=ucirc|▄^=Uuml|ⁿ^=uuml|▌^=Yacute|²^=yacute| ^=yuml];
  419.  
  420. H="Non breaking space"
  421.  
  422.  
  423. H="Apostrophe"
  424.  
  425. H="Quotes"
  426. “^&”
  427.  
  428. H="Color"
  429. ^!Clip "Color Codes"
  430. ^?{Choose a color=^$StrReplace("alice blue^=#F0F8FF";"_alice blue^=#F0F8FF";"^%AllColors%";True;False)$}
  431.  
  432. H=";Insert Tags"
  433.  
  434.  
  435. H="HRef Link"
  436. ^!InsertHtml <A ^?[(T=T;F="HTML Files|*.*htm*;*.asp;*.css")Link to web page=]>^?[Link text=^&]</A>
  437.  
  438. H="Img Link"
  439. ^!InsertHtml <IMG ^?[(T=T;C=U;F="Image Files|*.gif;*.png;*.jpg;*.jpeg;*.jpe")Link to image] BORDER="0" ALT="^?[Alt=^&]">
  440.  
  441. H=";Useful Commands"
  442.  
  443.  
  444. H="Tidy HTML code"
  445. ;Tidy code in the current documents. This Clip can use the HTML Tidy program, if available
  446. ^!Continue This command will tidy the code in your current document. Continue?
  447.  
  448. ;Determine method to use
  449. ^!Set %UseHtmlTidy%=No
  450. ^!IfFileExist "^$GetTidyExe$" ^!Set %UseHtmlTidy%=Yes
  451. ^!IfFalse ^%UseHtmlTidy% NoteTabMethod
  452. ;If HTML Tidy is found, ask which method the user would like to use
  453. ^!Set %UseHtmlTidy%=^?{Select method==_Use HTML Tidy program (more options)^=Yes|Use NoteTab commands (much faster)^=No}
  454. ^!IfTrue ^%UseHtmlTidy% TidyMethod
  455.  
  456. :NoteTabMethod
  457. ^!Set %Param%=^?{Tag format?==_Uppercase|Lowercase|XHTML}
  458. ^!Select ALL
  459. ^!InsertText ^$GetHtmlTextTidy("^$GetSelection$";^%Param%)$
  460. ^!Goto EndCall
  461.  
  462. :TidyMethod
  463. ^!Set %Param%=--tidy-mark false -q^?{Indent HTML code?==_Yes^=i|No^=}^?{Tag format?==_Uppercase^=u|Lowercase^=|XHTML^= -asxml}^?{Wrap long lines?==Yes^=|_No^= -wrap 0}
  464. ^!RunTidy ^%Param%
  465.  
  466. :EndCall
  467. ;Place the cursor at the start of the document
  468. ^!Jump Text_Start
  469.  
  470.  
  471. H=";Quick Tags"
  472.  
  473.  
  474. H="p"
  475. ^!SetPasteIndent Off
  476. ^!InsertHtml <P>^&</P>
  477.  
  478. H="br"
  479. ^!InsertHtml <BR>^P
  480.  
  481.  
  482. H="i"
  483. ^!Clip CheckLogical
  484.  
  485. :PasteTag
  486. ^!Set %Value%=I
  487. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=EM
  488. ^!InsertHtml <^%Value%>^&</^%Value%>
  489.  
  490. H="b"
  491. ^!Clip CheckLogical
  492.  
  493. :PasteTag
  494. ^!Set %Value%=B
  495. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=STRONG
  496. ^!InsertHtml <^%Value%>^&</^%Value%>
  497.  
  498. H="c"
  499. ^!InsertHtml <CENTER>^&</CENTER>
  500.  
  501. H="a"
  502. ^!InsertHtml <A HREF="^&"></A>
  503.  
  504. H="m"
  505. ^!InsertHtml <A HREF="mailto:^&"></A>
  506.  
  507. H="img"
  508. ^!InsertHtml <IMG SRC="^&" BORDER="0" ALT="">
  509.  
  510. H="co"
  511. <!-- ^& -->
  512.  
  513. H="td"
  514. ^!InsertHtml <TD>^&</TD>
  515.  
  516. H="tr"
  517. ^!InsertHtml <TR>^&</TR>
  518.  
  519. H="h1"
  520. ^!InsertHtml <H1>^&</H1>
  521.  
  522. H="h2"
  523. ^!InsertHtml <H2>^&</H2>
  524.  
  525. H="h3"
  526. ^!InsertHtml <H3>^&</H3>
  527.  
  528. H="h4"
  529. ^!InsertHtml <H4>^&</H4>
  530.  
  531. H=";"
  532.  
  533.  
  534. H=";Clipbar items"
  535.  
  536.  
  537. H="Open HTML-1 Clipbar"
  538. ^!OpenClipbar HTML-1
  539.  
  540. H="Open HTML-2 Clipbar"
  541. ^!OpenClipbar HTML-2
  542.  
  543. H="Paragraph"
  544. ^!SetPasteIndent Off
  545. ^!InsertHtml <P>^&</P>
  546.  
  547. H="Align center"
  548. ^!SetPasteIndent Off
  549. ^!InsertHtml <P ALIGN="center">^&</P>
  550.  
  551. H="Align justify"
  552. ^!SetPasteIndent Off
  553. ^!InsertHtml <P ALIGN="justify">^&</P>
  554.  
  555. H="Align left"
  556. ^!SetPasteIndent Off
  557. ^!InsertHtml <P ALIGN="left">^&</P>
  558.  
  559. H="Align right"
  560. ^!SetPasteIndent Off
  561. ^!InsertHtml <P ALIGN="right">^&</P>
  562.  
  563. H=";"
  564.  
  565.  
  566. H=";About this library"
  567. This library was written by Fookes Software to serve as a demonstration of the varied tasks that can be performed by the Editor Clipbook. You are free to customize it any way you like, but make sure you keep a backup copy before installing a new copy of NoteTab over it!
  568.  
  569. If you have a useful Clipbook library that you would like to share with other NoteTab users, please submit it to: <clipbook@fookes.com>. Your library will then be added to the Clipbook repository on the web.
  570.  
  571.  
  572. H=";"
  573.  
  574.  
  575. H="_Color Codes"
  576. ^!Set %AllColors%=alice blue^=#F0F8FF|antique white^=#FAEBD7|aqua^=#00FFFF|aqua marine^=#7FFFD4|azure^=#F0FFFF|beige^=#F5F5DC|bisque^=#FFE4C4|black^=#000000|blanched almond^=#FFEBCD|blue^=#0000FF|blue violet^=#8A2BE2|brown^=#A52A2A|burly wood^=#DEB887|cadet blue^=#5F9EA0|chartreuse^=#7FFF00|chocolate^=#D2691E|coral^=#FF7F50|corn flower blue^=#6495ED|corn silk^=#FFF8DC|crimson^=#DC143C|cyan^=#00FFFF|dark blue^=#00008B|dark cyan^=#008B8B|dark golden rod^=#B8860B|dark gray^=#A9A9A9|dark green^=#006400|dark khaki^=#BDB76B|dark magenta^=#8B008B|dark olive green^=#556B2F|dark orange^=#FF8C00|dark orchid^=#9932CC|dark red^=#8B0000|dark salmon^=#E9967A|dark sea green^=#8FBC8F|dark slate blue^=#483D8B|dark slate gray^=#2F4F4F|dark turquoise^=#00CED1|dark violet^=#9400D3|deep pink^=#FF1493|deep sky blue^=#00BFFF|dim gray^=#696969|dodger blue^=#1E90FF|fire brick^=#B22222|floral white^=#FFFAF0|forest green^=#228B22|fuchsia^=#FF00FF|gainsboro^=#DCDCDC|ghost white^=#F8F8FF|gold^=#FFD700|golden rod^=#DAA520|gray^=#808080|green^=#008000|green yellow^=#ADFF2F|honey dew^=#F0FFF0|hot pink^=#FF69B4|indian red^=#CD5C5C|indigo^=#4B0082|ivory^=#FFFFF0|khaki^=#F0E68C|lavender^=#E6E6FA|lavender blush^=#FFF0F5|lawn green^=#7CFC00|lemon chiffon^=#FFFACD|light blue^=#ADD8E6|light coral^=#F08080|light cyan^=#E0FFFF|light golden rod yellow^=#FAFAD2|light green^=#90EE90|light grey^=#D3D3D3|light pink^=#FFB6C1|light salmon^=#FFA07A|light sea green^=#20B2AA|light sky blue^=#87CEFA|light slate gray^=#778899|light steel blue^=#B0C4DE|light yellow^=#FFFFE0|lime^=#00FF00|lime green^=#32CD32|linen^=#FAF0E6|magenta^=#FF00FF|maroon^=#800000|medium aqua marine^=#66CDAA|medium blue^=#0000CD|medium orchid^=#BA55D3|medium purple^=#9370DB|medium sea green^=#3CB371|medium slate blue^=#7B68EE|medium spring green^=#00FA9A|medium turquoise^=#48D1CC|medium violet red^=#C71585|midnight blue^=#191970|mint cream^=#F5FFFA|misty rose^=#FFE4E1|moccasin^=#FFE4B5|navajo white^=#FFDEAD|navy^=#000080|old lace^=#FDF5E6|olive^=#808000|olive drab^=#6B8E23|orange^=#FFA500|orange red^=#FF4500|orchid^=#DA70D6|pale golden rod^=#EEE8AA|pale green^=#98FB98|pale turquoise^=#AFEEEE|pale violet red^=#DB7093|papaya whip^=#FFEFD5|peach puff^=#FFDAB9|peru^=#CD853F|pink^=#FFC0CB|plum^=#DDA0DD|powder blue^=#B0E0E6|purple^=#800080|red^=#FF0000|rosy brown^=#BC8F8F|royal blue^=#4169E1|saddle brown^=#8B4513|salmon^=#FA8072|sandy brown^=#F4A460|sea green^=#2E8B57|sea shell^=#FFF5EE|sienna^=#A0522D|silver^=#C0C0C0|sky blue^=#87CEEB|slate blue^=#6A5ACD|slate gray^=#708090|snow^=#FFFAFA|spring green^=#00FF7F|steel blue^=#4682B4|tan^=#D2B48C|teal^=#008080|thistle^=#D8BFD8|tomato^=#FF6347|turquoise^=#40E0D0|violet^=#EE82EE|wheat^=#F5DEB3|white^=#FFFFFF|white smoke^=#F5F5F5|yellow^=#FFFF00|yellow green^=#9ACD32
  577.  
  578. H="_Basic Color Codes"
  579. ^!Set %BasicColors%=aqua^=#00FFFF|black^=#000000|blue^=#0000FF|fuchsia^=#FF00FF|gray^=#808080|green^=#008000|lime^=#00FF00|maroon^=#800000|navy^=#000080|olive^=#808000|purple^=#800080|red^=#FF0000|silver^=#C0C0C0|teal^=#008080|white^=#FFFFFF|yellow^=#FFFF00
  580.  
  581. H="_CreateList"
  582. ^!If ^$GetSelSize$ > 0 FormatSelection
  583. ^!Set %Count%=^?{How many items?=1|2|_3|4|5|6|7|8|9}
  584. ^!InsertHtml <^&>^P^$StrFill("  <LI></LI>^P";^%Count%)$</^&>^P
  585. ^!Goto End
  586.  
  587. :FormatSelection
  588. ^!Select PARAGRAPHS
  589. ^!SetListDelimiter ^P
  590. ^!SetArray %Items%=^$GetSelection$
  591.  
  592. ^!Set %Indent%="  "
  593. ^!Set %GroupIndent%=""
  594. ^!Set %IndentSize%=^$Calc(^$StrSize("^%Items1%!")$ - ^$StrSize("^$StrTrim("^%Items1%!")$")$)$
  595. ^!If ^%IndentSize% > 0 ^!Set %Indent%=^$StrCopy("^%Items1%";1;^%IndentSize%)$
  596. ^!If ^%IndentSize% > 2 ^!Set %GroupIndent%=^$StrCopy("^%Indent%";1;^$Calc(^%IndentSize% - 2)$)$
  597.  
  598. ^!Set %Index%=1; %ItemsCount%=^%Items0%; %ListStr%=^%GroupIndent%<^&>^P
  599.  
  600. :StartLoop
  601. ^!If ^%Index% > ^%ItemsCount% EndLoop
  602. ^!Set %Line%=^$StrTrim("^%Items^%Index%%")$
  603.  
  604. ^!IfTrue ^$IsEmpty("^%Line%")$ Next ELSE Skip
  605. ^!If ^%Index% = ^%ItemsCount% EndLoop
  606.  
  607. ^!IfFalse ^$IsEmpty("^%Line%")$ ^!Set %Line%=^%Indent%<LI>^%Line%</LI>
  608. ^!Set %ListStr%=^%ListStr%^%Line%^P
  609. ^!Inc %Index%
  610. ^!Goto StartLoop
  611.  
  612. :EndLoop
  613. ^!InsertHtml ^%ListStr%^%GroupIndent%</^&>^P
  614.  
  615. H="_CheckLogical"
  616. ^!IfFalse ^$IsEmpty(^%p_LogicalTag%)$ CheckKeyboard
  617. ^!Set %p_LogicalTag%=^$GetValue("HTML_Logical")$
  618. ^!IfFalse ^$IsEmpty(^%p_LogicalTag%)$ CheckKeyboard
  619. ^!Set %p_LogicalTag%=False
  620. ^!SaveValue HTML_Logical=^%p_LogicalTag%
  621.  
  622. :CheckKeyboard
  623. ^!IfFalse ^$IsCtrlKeyDown$ End
  624. ^!Set %Value%=True
  625. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=False
  626. ^!Set %p_LogicalTag%=^%Value%
  627. ^!SaveValue HTML_Logical=^%p_LogicalTag%
  628.